Skip to content

chore: speed up pre-commit skill asset sync#96

Merged
XXPermanentXX merged 3 commits into
mainfrom
chore/commit-hooks
Jul 13, 2026
Merged

chore: speed up pre-commit skill asset sync#96
XXPermanentXX merged 3 commits into
mainfrom
chore/commit-hooks

Conversation

@hopelynd

@hopelynd hopelynd commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Read skill reference generator inputs from bailian-cli-core source instead of dist, so sync:skill-assets no longer needs a package build.
  • Update pre-commit and agent docs to match the lighter sync path.

Locally, pnpm run sync:skill-assets dropped from ~12.6s to ~4.0–4.6s (~63% faster). Generated reference content stays equivalent after formatting.

Test plan

  • Run pnpm run sync:skill-assets and confirm it completes without building core/runtime/commands
  • Confirm skills/bailian-cli/reference/ content matches the previous output after vp check --fix
  • Run vp check on the touched files
  • Exercise pre-commit with an empty commit (git commit --allow-empty) or a small staged change and confirm the hook still regenerates skill assets then runs vp staged

hopelynd added 2 commits July 13, 2026 14:38
- Modified the `sync:skill-assets` script in `package.json` to remove the dependency on building `bailian-cli-core` before generating references and syncing skill versions.
CI runs sync:skill-assets before vp check without pre-commit's vp staged,
so reference markdown must be formatted in the shared sync script.
@hopelynd hopelynd requested a review from XXPermanentXX July 13, 2026 06:49
release/check.mjs calls generate:reference directly then git diff --exit-code
on skills/bailian-cli/reference/. Formatting must stay on that script; root
sync:skill-assets should not duplicate it.
@XXPermanentXX XXPermanentXX merged commit 7dd5431 into main Jul 13, 2026
2 checks passed
@XXPermanentXX XXPermanentXX deleted the chore/commit-hooks branch July 13, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants